<html>
<head><meta charset="utf-8"><title>server_sync_issue · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue.html">server_sync_issue</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="188329535"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue/near/188329535" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue.html#188329535">(Feb 16 2020 at 15:49)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> , may I ask you to describe what was the issue you fixed in this PR?<br>
<a href="https://github.com/rust-analyzer/rust-analyzer/pull/2709" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/pull/2709">https://github.com/rust-analyzer/rust-analyzer/pull/2709</a></p>



<a name="188329589"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue/near/188329589" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue.html#188329589">(Feb 16 2020 at 15:50)</a>:</h4>
<p>This comment in particular: <a href="https://github.com/rust-analyzer/rust-analyzer/pull/2709/files#diff-0099aced0b5826ac85b37c58f68dcf96R14-R17" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/pull/2709/files#diff-0099aced0b5826ac85b37c58f68dcf96R14-R17">https://github.com/rust-analyzer/rust-analyzer/pull/2709/files#diff-0099aced0b5826ac85b37c58f68dcf96R14-R17</a></p>



<a name="188329590"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue/near/188329590" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue.html#188329590">(Feb 16 2020 at 15:50)</a>:</h4>
<p>The PR was a general refactoing, only the last PR fixes the problem introduced by it</p>



<a name="188329591"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue/near/188329591" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue.html#188329591">(Feb 16 2020 at 15:50)</a>:</h4>
<p>Basically, both langauge server and type hints register "onChange" handlers</p>



<a name="188329594"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue/near/188329594" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue.html#188329594">(Feb 16 2020 at 15:50)</a>:</h4>
<p>And type hints call back into the server</p>



<a name="188329601"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue/near/188329601" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/server_sync_issue.html#188329601">(Feb 16 2020 at 15:51)</a>:</h4>
<p>So, if typehints handler get's registered first, it'll call into the server which hasn't received the last update yet.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>